package com.eco.fanliapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eco.fanliapp.common.response.ServerResponse;
import com.eco.fanliapp.entity.SyUserFootprint;

/**
 * <p>
 * 足迹表 服务类
 * </p>
 *
 * @author jobob
 * @since 2019-08-21
 */
public interface ISyUserFootprintService extends IService<SyUserFootprint> {

    /**
     * 插入足迹
     * @param goodsId
     * @return
     */
    ServerResponse footprintToDo(Long userId, Long goodsId);

    /**
     * 删除足迹
     * @param goodsId
     * @return
     */
    ServerResponse footprintRemove(Long userId, Long goodsId);

    /**
     * 足迹列表
     * @return
     * @param userId
     * @param pageNum
     * @param pageSize
     */
    ServerResponse footprintList(Long userId, Long pageNum, Long pageSize);

    /**
     * 找相似
     * @param userId
     * @param keyword
     * @param pageNum
     * @param pageSize
     * @return
     */
    ServerResponse similarList(Long userId, String keyword, Long pageNum, Long pageSize);

    /**
     * 商品点击数
     * @param itemId
     * @return
     */
    ServerResponse appGoodsHitCount(Long itemId);
}
